package com.example.mybatisplus.service.impl;

import com.example.mybatisplus.model.domain.Dot;
import com.example.mybatisplus.model.domain.Major;
import com.example.mybatisplus.mapper.MajorMapper;
import com.example.mybatisplus.service.MajorService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zzy
 * @since 2024-06-24
 */
@Service
public class MajorServiceImpl extends ServiceImpl<MajorMapper, Major> implements MajorService {
    @Autowired
    private MajorMapper majorMapper;

    @Override
    public List<Major> selectMajorByCollegeId(Long CollegeID) {
        List<Major> list1 = majorMapper.selectMajorByCollegeId(CollegeID);
        return list1;
    }

}
